#! /bin/sh
### BEGIN INIT INFO
# Provides:          fwserver
# Required-Start:    $local_fs $remote_fs
# Required-Stop:     $local_fs $remote_fs
# Default-Start:     2 3 4 5
# Default-Stop:      S 0 1 6
# Short-Description: fwserver
# Description:       fwserver init
### END INIT INFO

set -e
DEFAULT_PATH=/OS/SVN/trunk/binary/

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DESC="fwserver daemon init"
NAME=fwserver
DAEMON=/$DEFAULT_PATH/$NAME
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/fwinit


case "$1" in
  start)
	echo -n "Starting $DESC: $NAME"
	$DAEMON   > /dev/null 2>&1 &
	echo "."
	;;
  stop)
	echo -n "Stopping $DESC: $NAME"
	#not implemented
	echo "."
	;;
 
  restart|force-reload)
	echo -n "Restarting $DESC: $NAME"
	#not implemented
	sleep 1
	
	echo "."
	;;
  *)
	echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
	exit 3
	;;
esac

exit 0
